package adapter;

/**
 * 类适配器：使用继承实现适配
 */
public class PrintBanner extends Banner implements Print {

    public PrintBanner(String string) {
        super(string);
    }

    @Override
    public void printWeak() {
        showWithParen();

    }

    @Override
    public void printStrong() {
        showWithAster();

    }
}
